package com.xiaozhichao.databafflesys.repository.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 请求响应报文对应表
 * </p>
 *
 * @author xiaozhichao
 * @since 2021-03-30
 */
public class BaffleMessage extends Model<BaffleMessage> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 名称
     */
    private String name;

    /**
     * 请求报文路径
     */
    private String reqUrl;

    /**
     * 响应报文路径
     */
    private String resUrl;

    /**
     * 接口id
     */
    private Long interfaceId;

    /**
     * 备注
     */
    private String note;

    private Long timeout;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getReqUrl() {
        return reqUrl;
    }

    public void setReqUrl(String reqUrl) {
        this.reqUrl = reqUrl;
    }

    public String getResUrl() {
        return resUrl;
    }

    public void setResUrl(String resUrl) {
        this.resUrl = resUrl;
    }

    public Long getInterfaceId() {
        return interfaceId;
    }

    public void setInterfaceId(Long interfaceId) {
        this.interfaceId = interfaceId;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Long getTimeout() {
        return timeout;
    }

    public void setTimeout(Long timeout) {
        this.timeout = timeout;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BaffleMessage{" +
        "id=" + id +
        ", name=" + name +
        ", reqUrl=" + reqUrl +
        ", resUrl=" + resUrl +
        ", interfaceId=" + interfaceId +
        ", note=" + note +
        ", timeout=" + timeout +
        "}";
    }
}
